<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>图片视差滚动</title>
</head>

<body>
    <div class="top"></div>
    <div class="parallax">
        <div class="parallax-content">

            Your Main Content

        </div>
    </div>
    <div class="top"></div>

    <style>
        .parallax {
            background-image: url("../../07-block/苏醒主题/img/index-about.png");
            height: 300px;
            background-attachment: fixed;
            background-position: center;
            background-repeat: no-repeat;
            background-size: cover;
            margin-left: -410px;
            margin-right: -410px;
        }

        .parallax-content {
            width: 50%;
            margin: 0 auto;
            color: #FFF;
            padding-top: 50px;
        }

        .top {
            height: 600px;
        }
    </style>
</body>

</html>